<template>
	<!-- 聊天设置 -->
	<view class="content">
		<view class="">
			<confirm></confirm>
		</view>
		<view class="row">
			<span>置顶联系人</span>
			<uSwitch v-model="stick" @change="change"
			size="12" activeColor="#08C8BD"></uSwitch>
		</view>
		<view class="row" @click="toReport">
			<span>举报对方</span>
			<image src="/static/img/my_slices/Frame222@2x.png" mode="scaleToFill"></image>
		</view>
		<button>删除该聊天</button>
	</view>
</template>

<script>
	import confirm from '@/subpageB/components/confirm.vue'
	import uSwitch from '@/subpageB/uview-ui/components/u-switch/u-switch.vue'
	
	export default {
		data() {
			return {
				stick:false,		//收否置顶联系人
			}
		},
		components:{
			confirm,
			uSwitch
		},
		methods: {
			change(){
				console.log(this.stick);
			},
			toReport(){
				//前往举报
				uni.navigateTo({
					url:'/subpageB/common/report'
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.content{
		width: 100%;
		min-height: 100vh;
		padding: 1px 0;
		background-color:#FFFFFF;
		
		.row{
			padding: 40rpx 32rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			border-top: 1px solid #F3F7F8;
			
			>span{
				font-size: 32rpx;
				font-family: PingFang SC-Regular, PingFang SC;
				font-weight: 400;
				color: #001A18;
			}
			>image{
				width: 16rpx;
				height: 30rpx;
			}
			
		}
		
		>button{
			display: flex;
			justify-content: center;
			align-items: center;
			width: 686rpx;
			height: 96rpx;
			margin: 32rpx;
			margin-top: 54rpx;
			background: #F3F7F8;
			border-radius: 8px 8px 8px 8px;
			font-size: 16px;
			font-family: PingFang SC-Medium, PingFang SC;
			font-weight: 500;
			color: #505E5C;
		}
		
		
	}
</style>
